<%-- 
    Document   : content_editaccount
    Created on : Jan 8, 2012, 4:09:17 AM
    Author     : Ngoc Linh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<form action="" method="post" id="frmEdit">
    <div id="ad_account_top">
        <h2>Chỉnh sửa tài khoản người dùng</h2>
        <div id="ad_account_buttons">
            <input type="image" name="saveAccount" id="saveAccount" src="../images/ad_btn_Save.png" style="border-width: 0px;" onclick="$('#frmEdit').submit()" />
            <input type="image" name="cancle" id="cancle" src="../images/ad_btn_Cancle.png" onclick="document.location.href='home.do';" style="border-width: 0px;" />
        </div>
    </div>
    <!-- end#ad_account_top-->
    <div id="ad_account_content">
        <c:if test="${not empty requestScope.message}">
            <p class="message">${requestScope.message}</p>
            <c:remove var="message" />
        </c:if>
        <table>
            <tbody>
                <tr>
                    <td class="ad_edit_info">
                        Tên tài khoản <span style="color: Red;">(*)</span>
                    </td>
                    <td>
                        <input name="tenTaiKhoan" type="text" value="${requestScope.taiKhoan.tenTaiKhoan}" id="tenTaiKhoan" readonly="readonly" />                                
                    </td>
                </tr>
                <tr>
                    <td class="ad_edit_info">
                        Loại tài khoản
                    </td>
                    <td>
                        <select name="loaiTK" id="loaiTK">
                            <c:forEach items="${requestScope.loaiTK}" var="loai">
                                <c:if test="${requestScope.taiKhoan.loaitaikhoan eq loai}">
                                    <option selected="selected" value="${loai.maLoaiTaiKhoan}">${loai.tenLoaiTaiKhoan}</option>
                                </c:if>
                                <c:if test="${requestScope.taiKhoan.loaitaikhoan ne loai}">
                                    <option value="${loai.maLoaiTaiKhoan}">${loai.tenLoaiTaiKhoan}</option>
                                </c:if>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="ad_edit_info">
                        Trình trạng Khóa
                    </td>
                    <td>
                        <select name="ttLock" id="ttLock">
                            <c:if test="${requestScope.taiKhoan.daXoa eq false}">
                                <option selected="selected" value="0">Không khóa</option>
                                <option value="1">Đã khóa</option>
                            </c:if>
                            <c:if test="${requestScope.taiKhoan.daXoa eq true}">
                                <option selected="selected" value="1">Đã khóa</option>
                                <option value="0">Không khóa</option>
                            </c:if>
                        </select>
                    </td>
                </tr>                        
            </tbody>
        </table>
    </div>
</form>